<?php
/**
 * Traits Tracher
 * User: Administrator
 * Date: 2020/2/14 0014
 * Time: 下午 4:27
 */
namespace app\api\traits\model\curriculum;

Trait Curriculum {

    public function teacher()
    {
        return $this->belongsToMany('Teacher', '\\app\\api\\model\\curriculum\\CurriculumTeacher', 'tid', 'cid');
    }

    public function schoolTimetable()
    {
        return $this->hasMany('SchoolTimetable', 'cid');
    }

}